package com.mxpio.erp.equipment.service.impl;

import com.mxpio.erp.common.equipment.entity.EquipmentRepairPickupLine;
import com.mxpio.erp.common.equipment.service.EquipmentRepairPickupLineService;
import com.mxpioframework.jpa.query.Criteria;
import com.mxpioframework.jpa.query.Operator;
import com.mxpioframework.system.service.impl.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class EquipmentRepairPickupLineServiceImpl extends BaseServiceImpl<EquipmentRepairPickupLine> implements EquipmentRepairPickupLineService {

	@Override
	public List<EquipmentRepairPickupLine> selectByMainId(String mainId) {
		Criteria c = Criteria.create().addCriterion("bizNo", Operator.EQ, mainId);
		return list(EquipmentRepairPickupLine.class,c);
	}
}
